package com.nbjtjc.safe.api.safe;

import com.nbjtjc.safe.bean.Result;
import com.nbjtjc.safe.model.safe.SafeEnterprise;
import com.nbjtjc.safe.service.safe.WordgenerateServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/safe/report")
@CrossOrigin("*")
public class ReportController {

    @Autowired
    private WordgenerateServiceImpl wordgenerateService;


    @PostMapping("/generate")
    public Result generateReport( SafeEnterprise safeEnterprise) throws Exception {
        return wordgenerateService.generateMainWord(safeEnterprise);
    }

}
